// 角色的请求

import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"

// 查询角色
export const searchRoleApi = (data) => {
  return httpPost('/roles/search', data)
}
// 新增角色
export const addRoleApi = (data) => {
  return httpPost('/roles/add', data)
}
// 修改角色 
export const updateRoleApi = (data) => {
  return httpPut('/roles/update', data)
}
// 删除角色 
export const removeRoleApi = (data) => {
  return httpDelete('/roles/remove', data)
}
// 获取一个角色详情 
export const detailRoleApi = (data) => {
  return httpGet('/roles/detail', data)
}